import request from '@/utils/request'

// 物流商信息-列表
export const logisticsList = data =>
  request({
    url: `/logistics/logistics/index`,
    method: 'post',
    data,
  })

// 物流商信息-获取渠道列表
export const logisticsChannel = params =>
  request({
    url: `/logistics/logistics/channel`,
    method: 'get',
    params,
  })

// 物流商信息-创建
export const logisticsCreate = data =>
  request({
    url: `/logistics/logistics/create`,
    method: 'post',
    data,
  })

// 物流商信息-详情
export const logisticsDetail = params =>
  request({
    url: `/logistics/logistics/detail`,
    method: 'get',
    params,
  })

// 物流商信息-详情
export const updateLogistics = data =>
  request({
    url: `/logistics/logistics/update`,
    method: 'post',
    data,
  })

// 物流商信息-删除
export const deleteLogistics = data =>
  request({
    url: `/logistics/logistics/delete`,
    method: 'post',
    data,
  })

// 物流商信息-启用禁用
export const logisticsStatus = data =>
  request({
    url: `/logistics/logistics/status`,
    method: 'post',
    data,
  })
//物流商账期配置
export const logisticsBpConfig = data =>
  request({
    url: `/opts/logistics-bp-config`,
    method: 'post',
    data,
  })